<template>
	<view>
		<view class="content">
			<view class="log_top">
				<image :src="log.good_thumb" mode="aspectFill"></image>
				<view class="right">
					<view>物流公司：{{log.company}}</view>
					<view>物流单号：{{log.LogisticCode}}</view>
				</view>
			</view>
			<view class="log_list">
				<view class='logisit' v-if="log.logList.length !=0" v-for="(item,index) in log.logList" >
				  <view class='list' :style="{'border-left':item.id == log.logList.length-1 ? '':'1px solid #E5E5E5'}">
					<view class="left">
					  <image class='list_fin_img' v-if="item.id == 0&&log.logList.length>1" src="../../../static/Mine/circle.png"></image>
					  <image class='list_start_img' v-if="item.id != 0" src="../../../static/Mine/gantan_icon3.png"></image>
					</view>
					<view class="right">
					  <view :class="item.id == 0 ? 'list_name_last' : 'list_name' " >{{item.AcceptStation}}</view>
					  <view :class="item.id == 0 ? 'list_dates_last' : 'list_dates' ">{{item.AcceptTime}}</view>
					  <!-- <image src="../../../static/logo.png"></image> -->
					</view>
				  </view>
				</view>
			</view>
		</view>
	</view>
	
</template>

<script>
	export default {
		data() {
			return {
				log:{
					good_thumb:'../../../static/logo.png',
					company:'德邦物流',
					LogisticCode:'12345678910',
					logList:[
						{id:0,AcceptStation:'商品己送达',AcceptTime:'2021.03.10'},
						{id:1,AcceptStation:'己发货',AcceptTime:'2021.03.09'},
						{id:2,AcceptStation:'平台出货中',AcceptTime:'2021.03.08'},
					]
				}
			}
		},
		onLoad(options){
			
		},
		onShow() {
		},
		methods: {
		},
	}
</script>

<style lang="scss">
	.content{
		.log_top{
			height: 140rpx;
			width: 100%;
			border: 1px solid #F5F5F5;
			display: flex;
			justify-content: flex-start;
			z-index: 1;
			background-color: #FFFFFF;
			image{
				width: 68rpx;
				height: 68rpx;
				margin: 36rpx;
			}
			.right{
				font-size: 24rpx;
				color: #333333;
				view{
					margin-top: 20rpx;
				}
				
			}
		}
		// 物流追踪
		.log_list{
			width: 100%;
			height: 100%;
			margin-top: 130rpx;
			.logisit{
			  width: 100%;
			  font-size: 22rpx;
			}
			.list{
				width: 90%;
				margin: auto;
				display: flex;
				justify-content: flex-start;
				position: relative;
				.left{
					margin-left: 10rpx;
					position: absolute;
					left: -26rpx;
					width: 30rpx;
					text-align: center;
					.list_fin_img{
						width: 30rpx;
						height: 30rpx;
					}
					.list_start_img{
					   width: 24rpx;
					   height: 24rpx;
					}
				}
				.right{
					font-size: 22rpx;
					width: 90%;
					margin-left: 50rpx;
					margin-bottom: 50rpx;
					.list_name_last, .list_name{
					  width: 100%;
					  margin-top: -20rpx;
					  text-align: left;
					  font-size: 22rpx;
					}
					.list_name_last{
						color: #892C2B;
					}
					.list_name{
					  color: #999999;
					}
					.list_dates_last{
					  color: #892C2B;
					  font-size: 22rpx;
					  margin-top: 10rpx;
					}
					.list_dates{
					  font-size: 20rpx;
					  margin-top: 10rpx;
					  color: #999999;
					}
				}
			}
			
		}
		
		
	}
</style>